package IO流;

import java.io.FileWriter;

public class IO流_5_文件的字符流_输出 {
    public static void main(String[] args) {
        try {
            FileWriter wri =  new FileWriter("F:\\java_IO\\io2.txt");

           String xx = "字符流测试？";
           wri.write(xx);

           wri.flush();//刷在硬盘

           wri.close();//关闭

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
